package com.xmg.boot.demo.bootlesson1.user.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author ma
 * @date 2023/11/15
 * @description yml文件对应实体对象
 */

@Component
@ConfigurationProperties(prefix = "friends")
@Data
public class Friends {
    private String name1;
    private String name2;
    private int age;
    private List<String> pets;
}
